#!/bin/bash

cd ccode
rm -f *.o ../libs/libav.so
g++ -o av_cpp.o -I ../include -c av.cpp
g++ -o av.o -I ../include -c av.c
#g++ -o av.o -fPIC -shared -I ../include -c av.c
ar r ../libs/libav.so *.o
cd ..

go build
